<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="dic" uri="http://www.wangsanfei.com/tags/dic" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt_rt"%> 
<%@ page import=" com.wangsanfei.config.ConstConfig" %>

<%
String systemTopName="欢迎使用";
%>

	<header class="am-topbar am-topbar-inverse">
		<h1 class="am-topbar-brand">
			<%=systemTopName %>
		</h1>
		
		<button
			class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only"
			data-am-collapse="{target: '#doc-topbar-collapse-3'}">
			<span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span>
		</button>
		<div class="am-collapse am-topbar-collapse" id="doc-topbar-collapse-3">
			<ul class="am-nav am-nav-pills am-topbar-nav">

				<li class=" ${nav=='index'?'am-active':'' }"><a href="<%=request.getContextPath() %>/manage">首页</a></li>

				<li class=" ${nav=='banner'?'am-active':'' }"><a href="<%=request.getContextPath() %>/manage/banner">banner管理</a></li>
				<li class=" ${nav=='notice'?'am-active':'' }"><a href="<%=request.getContextPath() %>/manage/notice">资讯管理</a></li>
			</ul>
			
			<div class="am-topbar-right">
			
			
				<c:choose>
					<c:when test="${sessionScope[ConstConfig.SESSION_USER]!=null }">
						<!-- <a href="#"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='currentUser'?'am-active':'' }" >${sessionScope[ConstConfig.SESSION_USER].username }</button></a> -->
						<a href="<%=request.getContextPath() %>/manageLoginOut"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm" >注销</button></a>
					</c:when>
					<c:otherwise>
						<a href="<%=request.getContextPath() %>/login"><button class="am-btn am-btn-primary am-topbar-btn am-btn-sm ${nav=='login'?'am-active':'' }">登录</button></a>
					</c:otherwise>
				</c:choose>
			
			</div>

	</div>

	</header>

	<br/>
	
